<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  created () {
    window.reloadPage = this.reloadPage
  },
  methods: {
    reloadPage () {
      window.localStorage.setItem('currUrlPath', window.location.pathname + window.location.search)
      this.$router.push('/reload')
    }
  }
}
</script>

<style lang="less">
html,body{
  width: 100%;
  height: 100%;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;
}
</style>
